package com.panshi.modules.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 857
 * @since 2020-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@ApiModel(value="QaAnswer对象", description="")
@TableName("qa_answer")
public class QaAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回答表ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "回答人ID")
    private Long userId;

    @ApiModelProperty(value = "问题的ID")
    private Long questionId;

    @ApiModelProperty(value = "回答内容")
    private String content;

    @ApiModelProperty(value = "简介")
    private String introduce;

    @ApiModelProperty(value = "图片地址")
    private String photoPath;

        @ApiModelProperty(value = "回答时间")
    private Date createTime;

        @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "点赞量")
    private Integer raiseNum;

    @ApiModelProperty(value = "点踩量")
    private Integer downNum;

    @ApiModelProperty(value = "评论量")
    private Integer commentNum;

    @ApiModelProperty(value = "状态:0-下架,1-上架")
    private Integer status;

    @TableLogic
    @ApiModelProperty(value = "删除;0-删除,1-未删除")
    private Integer deleted;

    @ApiModelProperty(value = "用户关系映射")
    @TableField(exist = false)
    private UserMember userMember;

}
